package top.caoayu.base.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import top.caoayu.base.entity.Article;
import top.caoayu.base.entity.dto.ArticleCreateDTO;
import top.caoayu.base.entity.dto.ArticleDTO;
import top.caoayu.base.entity.dto.ArticleQueryDTO;
import top.caoayu.base.entity.vo.AritcleVo;

public interface IArticleService extends IService<Article> {

    Page<AritcleVo> page(ArticleQueryDTO articleDTO);
    int insert(ArticleCreateDTO articleDTO);
    ArticleDTO getDetail(ArticleQueryDTO articleQueryDTO);
    int reallyDelete(Long id);
    void reallyDeleteAll();
}
